﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace KnowlegeAssistant
{
    class LoginUtil
    {
        public static bool CheckLogin(string user_name, string user_pass)
        {
            List<string> parameters = new List<string>() { user_name, user_pass};
            DataTable table = DatabaseConnect.execSP("GetUserByNameAndPass", parameters).Tables[0];
            if (table.Rows.Count > 0)
            {
                return true;
            }
            return false;
        }
    }
}
